add_executable(mthcomb mthcomb.cpp)
add_executable(helper_thread_idx helper_thread_idx.cu)
add_executable(timer timer.cu)
add_executable(greeting greeting.cu)
add_executable(dsp dsp.cu)

include_directories("${CUDA_ROOT}/include")
include_directories(${PROJECT_SOURCE_DIR}/include)
include_directories(${PROJECT_SOURCE_DIR}/dsp)

# if(CMAKE_BUILD_TYPE STREQUAL "Debug")
#    # 用于开启调试
#    # target_compile_options(helper_thread_idx PRIVATE $<$<COMPILE_LANGUAGE:CUDA>:-G>)
# endif()
target_link_libraries(helper_thread_idx ${CUDA_LIBRARIES})